package com.nuist.test.Service;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nuist.test.DAO.JobDAO;
import com.nuist.test.Entity.JobTable;
import com.nuist.test.Entity.PlayerTable;
@Service
public class JobService {
    @Autowired
    private JobDAO jobDAO;
    public Set<PlayerTable> allPlayers(Integer jid){
    JobTable jobTable=jobDAO.findByJid(jid);
    return jobTable.getPlayers();
   }
    
}
